<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="15%">推广员名称</th>
            <th class="text-center" width="15%">上级推广员</th>
            <th class="text-center" width="10%">订单总量</th>
            <th class="text-center" width="10%">订单总金额</th>
            <th class="text-center" width="10%">收益总金额</th>
            <th class="text-center" width="10%">推广总收益</th>
            <th class="text-center" width="10%">奖励金总收益</th>
            <th class="text-center" width="10%">操作</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="11" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="agentIncome : ${dataMap['list']}" th:attr="data-id=${agentIncome['id']}">
                <td class="text-center" th:text="${agentIncome['id']}"></td>
                <td class="text-center" th:text="${agentIncome['agentUser']['agentUserName']}"></td>
                <td class="text-center" th:text="${agentIncome['agentUser']['parentAgentUser']} == null ?'——':${agentIncome['agentUser']['parentAgentUser']['agentUserName']}"></td>
                <td class="text-center" th:text="${agentIncome['orderNum']}"></td>
                <td class="text-center" th:text="${agentIncome['orderSumPrice']}"></td>
                <td class="text-center" th:text="${agentIncome['incomeSumPrice']}"></td>
                <td class="text-center" th:text="${agentIncome['spreadIncomePrice']}"></td>
                <td class="text-center" th:text="${agentIncome['bountyIncomePrice']}"></td>
                <td class="text-center" data-icon>
                    <a th:href="@{/admin/agent/income/queryAgentIncomeInfo?agentUserId={agentUserId}(agentUserId=${agentIncome['agentUser']['id']})}" class="c-master fs14" data-toggle="tooltip" data-placement="bottom" data-original-title="查看">
                        <i class="fa fa-eye"></i>
                    </a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>